/*
 * @Date: 2023-01-04 14:45:02
 * @LastEditTime: 2023-01-04 14:45:23
 */
import { createRouter, createWebHistory } from "vue-router";
import appRoutes from "./routes";

import createRouteGuard from "./guard";

const routes = appRoutes;
const router = createRouter({
  history: createWebHistory(),
  routes,
  scrollBehavior() {
    return { top: 0 };
  },
});

createRouteGuard(router);

export default router;
